#include <stdio.h>

int main()
{
    char s;
    long num = 0;
    do
    {
        scanf("%c",&s);
        if(s>='0'&&s<='9')
        {
            num *= 10;
            num += s-'0';
        }
    }while(s != '\n');
    printf("%ld",num);
    return 0;
}